import { BasicColumn, FormSchema } from '/@/components/Table';

export const columns: BasicColumn[] = [
  {
    title: '姓名',
    dataIndex: 'name',
    width: '',
    fixed: '',
    align: '',
    auth: ['student:name'],
    resizable: '',
  },
  {
    title: '年级',
    dataIndex: 'gerder',
    width: '',
    fixed: '',
    align: '',
    auth: ['student:gerder'],
    resizable: '',
  },
  {
    title: '班级',
    dataIndex: 'class_number',
    customRender: ({ text }) => `${text}班`,
    width: '',
    fixed: '',
    align: '',
    auth: ['student:class_number'],
    resizable: '',
  },
  {
    title: '身份证',
    dataIndex: 'id_card_number',
    width: '',
    fixed: '',
    align: '',
    auth: ['student:id_card_number'],
    resizable: '',
  },
  {
    title: '班主任',
    dataIndex: 'class_teacher',
    width: '',
    fixed: '',
    align: '',
    auth: ['student:class_teacher'],
    resizable: '',
  },
  {
    title: '班主任手机号',
    dataIndex: 'class_teacher_phone',
    width: '',
    fixed: '',
    align: '',
    auth: ['student:class_teacher_phone'],
    resizable: '',
  },
  {
    title: '学籍号',
    dataIndex: 'student_number',
    width: '',
    fixed: '',
    align: '',
    auth: ['student:student_number'],
    resizable: '',
  },
  {
    title: '联系电话',
    dataIndex: 'contact_phone',
    width: '',
    fixed: '',
    align: '',
    auth: ['student:contact_phone'],
    resizable: '',
  },
  {
    title: '性别',
    dataIndex: 'gender',
    width: '',
    fixed: '',
    align: '',
    auth: ['student:gender'],
    resizable: '',
  },
  {
    title: '民族',
    dataIndex: 'ethnicity',
    width: '',
    fixed: '',
    align: '',
    auth: ['student:ethnicity'],
    resizable: '',
  },
  {
    title: '现住址',
    dataIndex: 'current_address',
    width: '',
    fixed: '',
    align: '',
    auth: ['student:current_address'],
    resizable: '',
  },
  {
    title: '户籍地址',
    dataIndex: 'household_address',
    width: '',
    fixed: '',
    align: '',
    auth: ['student:household_address'],
    resizable: '',
  },
  {
    title: '户口所在地',
    dataIndex: 'residence_location',
    width: '',
    fixed: '',
    align: '',
    auth: ['student:residence_location'],
    resizable: '',
  },
  {
    title: '父亲姓名',
    dataIndex: 'father_name',
    width: '',
    fixed: '',
    align: '',
    auth: ['student:father_name'],
    resizable: '',
  },
  {
    title: '父亲身份证',
    dataIndex: 'father_id_card_number',
    width: '',
    fixed: '',
    align: '',
    auth: ['student:father_id_card_number'],
    resizable: '',
  },
  {
    title: '母亲姓名',
    dataIndex: 'mother_name',
    width: '',
    fixed: '',
    align: '',
    auth: ['student:mother_name'],
    resizable: '',
  },
  {
    title: '母亲身份证',
    dataIndex: 'mother_id_card_number',
    width: '',
    fixed: '',
    align: '',
    auth: ['student:mother_id_card_number'],
    resizable: '',
  },
  {
    title: '学籍学校',
    dataIndex: 'student_school',
    width: '',
    fixed: '',
    align: '',
    auth: ['student:student_school'],
    resizable: '',
  },
];

export const searchFormSchema: FormSchema[] = [
  {
    label: '年级',
    field: 'gerder',
    component: 'Select',
    componentProps: {
      options: [
        {
          label: '1年级',
          value: '1年级',
        },
        {
          label: '2年级',
          value: '2年级',
        },
        {
          label: '3年级',
          value: '3年级',
        },
        {
          label: '4年级',
          value: '4年级',
        },
        {
          label: '5年级',
          value: '5年级',
        },
        {
          label: '6年级',
          value: '6年级',
        },
      ],
    },
    colProps: { span: 6 },
  },

  {
    label: '班级',
    field: 'class_number',
    component: 'Select',
    componentProps: {
      options: [
        {
          label: '1班',
          value: '1',
        },
        {
          label: '2班',
          value: '2',
        },
        {
          label: '3班',
          value: '3',
        },
        {
          label: '4班',
          value: '4',
        },
        {
          label: '5班',
          value: '5',
        },
        {
          label: '6班',
          value: '6',
        },
      ],
    },
    colProps: { span: 6 },
  },

  {
    label: '姓名',
    field: 'name',
    component: 'Input',
    colProps: { span: 6 },
  },

  {
    label: '身份证',
    field: 'id_card_number',
    component: 'Input',
    colProps: { span: 6 },
  },
  {
    label: '性别',
    field: 'gender',
    component: 'Select',
    componentProps: {
      options: [
        {
          label: '男',
          value: '男',
        },
        {
          label: '女',
          value: '女',
        },
      ],
    },
    colProps: { span: 6 },
  },

  {
    label: '班主任',
    field: 'class_teacher',
    component: 'Input',
    colProps: { span: 6 },
  },

  {
    label: '学籍号',
    field: 'student_number',
    component: 'Input',
    colProps: { span: 6 },
  },

  {
    label: '现住址',
    field: 'current_address',
    component: 'Input',
    colProps: { span: 6 },
  },

  {
    label: '户籍地址',
    field: 'household_address',
    component: 'Input',
    colProps: { span: 6 },
  },

  {
    label: '户口所在地',
    field: 'residence_location',
    component: 'Input',
    colProps: { span: 6 },
  },
];

export const formSchema: FormSchema[] = [
  {
    field: 'id',
    label: 'id',
    component: 'Input',
    show: false,
  },
  {
    component: 'Select',
    label: '年级',
    field: 'gerder',
    colProps: {
      span: 24,
    },
    componentProps: {
      options: [
        {
          label: '1年级',
          value: '1年级',
        },
        {
          label: '2年级',
          value: '2年级',
        },
        {
          label: '3年级',
          value: '3年级',
        },
        {
          label: '4年级',
          value: '4年级',
        },
        {
          label: '5年级',
          value: '5年级',
        },
        {
          label: '6年级',
          value: '6年级',
        },
      ],
    },
    itemProps: {
      labelCol: {},
      wrapperCol: {},
    },
  },
  {
    component: 'InputNumber',
    label: '班级',
    field: 'class_number',
    colProps: {
      span: 24,
    },
    componentProps: {
      style: 'width:200px',
    },
    itemProps: {
      labelCol: {},
      wrapperCol: {},
    },
  },
  {
    component: 'Input',
    label: '班主任',
    field: 'class_teacher',
    colProps: {
      span: 24,
    },
    componentProps: {
      type: 'text',
    },
    itemProps: {
      labelCol: {},
      wrapperCol: {},
    },
  },
  {
    component: 'Input',
    label: '班主任手机号',
    field: 'class_teacher_phone',
    colProps: {
      span: 24,
    },
    componentProps: {
      type: 'text',
    },
    itemProps: {
      labelCol: {},
      wrapperCol: {},
    },
  },
  {
    component: 'Input',
    label: '姓名',
    field: 'name',
    colProps: {
      span: 24,
    },
    componentProps: {
      type: 'text',
    },
    itemProps: {
      labelCol: {},
      wrapperCol: {},
    },
  },
  {
    component: 'Input',
    label: '身份证',
    field: 'id_card_number',
    colProps: {
      span: 24,
    },
    componentProps: {
      type: 'text',
    },
    itemProps: {
      labelCol: {},
      wrapperCol: {},
    },
  },
  {
    component: 'Input',
    label: '学籍号',
    field: 'student_number',
    colProps: {
      span: 24,
    },
    componentProps: {
      type: 'text',
    },
    itemProps: {
      labelCol: {},
      wrapperCol: {},
    },
  },
  {
    component: 'InputNumber',
    label: '联系电话',
    field: 'contact_phone',
    colProps: {
      span: 24,
    },
    componentProps: {
      type: 'text',
    },
    itemProps: {
      labelCol: {},
      wrapperCol: {},
    },
  },
  {
    component: 'Input',
    label: '性别',
    field: 'gender',
    colProps: {
      span: 24,
    },
    componentProps: {
      type: 'text',
    },
    itemProps: {
      labelCol: {},
      wrapperCol: {},
    },
  },
  {
    component: 'Input',
    label: '民族',
    field: 'ethnicity',
    colProps: {
      span: 24,
    },
    componentProps: {
      type: 'text',
    },
    itemProps: {
      labelCol: {},
      wrapperCol: {},
    },
  },
  {
    component: 'Input',
    label: '现住址',
    field: 'current_address',
    colProps: {
      span: 24,
    },
    componentProps: {
      type: 'text',
    },
    itemProps: {
      labelCol: {},
      wrapperCol: {},
    },
  },
  {
    component: 'Input',
    label: '户籍地址',
    field: 'household_address',
    colProps: {
      span: 24,
    },
    componentProps: {
      type: 'text',
    },
    itemProps: {
      labelCol: {},
      wrapperCol: {},
    },
  },
  {
    component: 'Input',
    label: '户口所在地',
    field: 'residence_location',
    colProps: {
      span: 24,
    },
    componentProps: {
      type: 'text',
    },
    itemProps: {
      labelCol: {},
      wrapperCol: {},
    },
  },
  {
    component: 'Input',
    label: '父亲姓名',
    field: 'father_name',
    colProps: {
      span: 24,
    },
    componentProps: {
      type: 'text',
    },
    itemProps: {
      labelCol: {},
      wrapperCol: {},
    },
  },
  {
    component: 'Input',
    label: '父亲身份证',
    field: 'father_id_card_number',
    colProps: {
      span: 24,
    },
    componentProps: {
      type: 'text',
    },
    itemProps: {
      labelCol: {},
      wrapperCol: {},
    },
  },
  {
    component: 'Input',
    label: '母亲姓名',
    field: 'mother_name',
    colProps: {
      span: 24,
    },
    componentProps: {
      type: 'text',
    },
    itemProps: {
      labelCol: {},
      wrapperCol: {},
    },
  },
  {
    component: 'Input',
    label: '母亲身份证',
    field: 'mother_id_card_number',
    colProps: {
      span: 24,
    },
    componentProps: {
      type: 'text',
    },
    itemProps: {
      labelCol: {},
      wrapperCol: {},
    },
  },
  {
    component: 'Input',
    label: '学籍学校',
    field: 'student_school',
    colProps: {
      span: 24,
    },
    componentProps: {
      type: 'text',
    },
    itemProps: {
      labelCol: {},
      wrapperCol: {},
    },
  },
];
